package com.fancymusic.dao;

import com.fancymusic.entity.Music;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface IMusicDao {

//    List<Music> getAllMusic(@Param("start")Integer start,@Param("end")Integer end);
    List<Music> getAllMusic();


    Music getMusicByMid(Integer mid);

    void save(@Param("musicName")String musicName,@Param("typeId")Integer typeId,@Param("singerId")Integer singerId);


    void deleteMusic(Integer id);
}
